<?php
class model__index_model extends database_mysql
{
    public function __construct()
    {
        parent::__construct();
        
    }
    
    public function md_im_list_app()
    {
        $sql = "
                SELECT
                ".prefix."categories_lang.CatName,
                ".prefix."categories.App
                FROM
                ".prefix."categories
                INNER JOIN ".prefix."categories_lang ON ".prefix."categories.ID = ".prefix."categories_lang.CatID
                WHERE
                ".prefix."categories.Define = 'app'
        ";
        $rs = parent::mysql_fetch_all_rows($sql);
        return $rs;
    }
}
